<template>
    <div>
      <h1>父组件</h1>
      <p>来自子组件的数据: {{ childData }}</p>
      <ChildComponent v-model="childData" />
      <!-- <ChildComponent :modelValue="childData" @update:modelValue="childData=modelValue" /> -->
    </div>
  </template>
  
  <script setup>
  import { ref } from 'vue';
  import ChildComponent from './index.vue';
  
  const childData = ref('');
  </script>